package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商实体类
 */
@TableName("t_supplier")
@ExcelTarget("supplier")
public class SupplierBean {
    //    供应商编号
    @TableId(value = "pk_supplierId", type = IdType.AUTO)
    @Excel(name = "编号")
    private Integer id;

    //    供应商名字
    @TableField("su_name")
    @Excel(name = "名称")
    private String name;

    //    负责人
    @TableField("su_user")
    @Excel(name = "负责人")
    private String user;

    //    负责人电话
    @TableField("su_phone")
    @Excel(name = "电话")
    private String phone;

    //    供应商地址
    @TableField("su_address")
    @Excel(name = "地址")
    private String address;

    //    经营范围
    @TableField("su_business")
    @Excel(name = "经营范围")
    private String business;

    public SupplierBean() {
    }

    public SupplierBean(String name, String user, String phone, String address, String business) {
        this.name = name;
        this.user = user;
        this.phone = phone;
        this.address = address;
        this.business = business;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", user='" + user + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", business='" + business + '\'' +
                '}';
    }
}
